Rotate Method
The Rotate method rotates a graphic item.
Example
s = SURFACE(/TEST, /CURRENT)
s.Rotate, /RESET
s.Rotate, 45, /ZAXIS
s.Rotate, -60, /XAXIS
s.Rotate, 45, /YAXIS
t = TEXT(0.5, 0.3, 'Sample', $
FONT_SIZE=100, ALIGNMENT=0.5, $
COLOR='yellow')
t.Rotate, -30
Syntax
graphic.Rotate, Angle [, /DEFAULT] [, /RESET] [, /XAXIS] [, /YAXIS] [, /ZAXIS]
Arguments
Angle
The number of degrees to rotate the graphic. Positive values represent clockwise rotation as if looking along the positive axis. Angle is required unless DEFAULT or RESET is set.
Keywords
DEFAULT
Set this keyword to 1 to change to the default rotation for 3D graphics (30° in X, 30° in Y, then -90° in X). This keyword is ignored for 2D graphics.
RESET
Set this keyword to 1 to reset the rotation before applying any inputs.
XAXIS
Set this keyword to 1 to rotate the graphic around the X axis.
YAXIS
Set this keyword to 1 to rotate the graphic around the Y axis.
ZAXIS
Set this keyword to 1 to rotate the graphic around the Z axis. This is the default.
Version History
8.0 |
Introduced |